lib/deploy: Support locking deployment finalization
authorJonathan Lebon <jonathan@jlebon.com>
Tue, 16 Apr 2019 21:12:08 +0000 (17:12 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 24 Apr 2019 21:38:24 +0000 (21:38 +0000)
commit586cc2deee96ada367a6033f9062e8b0c24bc687
tree43f721f38deec003e6a4ec244f8beae942792397
parent405d9ef9e0bb66cf7f93f11f49244852b57ee270
lib/deploy: Support locking deployment finalization

Teach `ostree-finalize-staged.service` to check for a file in `/run` to
determine if it should do the finalization. This will be used in
RPM-OSTree, where we want to be able to separate out "preparing updates"
from "making update the default" for more fine-grained control. See:
https://github.com/projectatomic/rpm-ostree/issues/1748

Closes: #1841
Approved by: cgwalters
src/libostree/ostree-sysroot-deploy.c
src/libostree/ostree-sysroot-private.h